import api from '@/http/index'

/* 列表 */
export const getInfo = (data, methods, parameter) => {
    return new Promise((resolve, reject) => {
        api[methods](`/api/${data.url}`, methods == 'post' ? parameter : null).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
